package com.gskj.eduservice.client;

import com.gskj.commonutils.ResultJson;
import com.gskj.educenter.entity.MemberRegisterVO;
import com.gskj.eduservice.client.impl.VodClientImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.servlet.http.HttpServletRequest;

/**
 * @author : Connor-G 康纳-郭
 * @date : 17:16 20.8.16
 * @Company : http://www.gskj.club
 * @Version : 1.0
 */

@FeignClient(name = "service-ucenter")
@Component
public interface UCenterClient {

    @GetMapping("/educenter/member/get/memberinfo")
    public ResultJson parseToken(HttpServletRequest request);

    @PostMapping("/educenter/member/register")
    public ResultJson registerMember(@RequestBody MemberRegisterVO member);

    @GetMapping("/educenter/member/get/memberinfo/str/{token}")
    public ResultJson parseTokenWithStr(@PathVariable("token") String token);
}
